package mine.gui;

import java.awt.FlowLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

public class ControlWindow extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7483079713631633119L;
	public static final String RUN = "Run";
	public static final String EXIT = "Exit";
	private JButton btnRun;
	private JButton btnExit;
	public ControlWindow (ActionListener actionListner){
		btnRun = new JButton(RUN);
		btnExit = new JButton(EXIT);
		this.setLayout( new FlowLayout() );
		this.add(btnRun);
		this.add(btnExit);
		btnRun.addActionListener(actionListner);
		btnExit.addActionListener(actionListner);
	}
	
}
